package cn.lili.controller.feign;

import cn.lili.modules.promotion.client.CouponClient;
import cn.lili.modules.promotion.entity.dos.Coupon;
import cn.lili.modules.promotion.service.CouponService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: ftyy
 * @date: 2022-01-13 18:16
 * @description: 优惠券活动实现类
 */
@RestController
@RequiredArgsConstructor
public class CouponFeignController implements CouponClient {

    private final CouponService couponService;

    @Override
    public Coupon getById(@PathVariable String couponId) {
        return couponService.getById(couponId);

    }
}
